function form_submit(){
	var chknumber = $("#chknumber").val();
	if(chknumber==""){
		alert("验证码不能为空!");
		return ;
	}
	if(chknumber.length!=4){
		alert("验证码长度只能为4个字符!");
		return ;
	}
	$("#login").submit();
}
function form_reset(){
	$("#login").reset();
}
function reloadcode(){
    var verify=document.getElementById('safecode');
    verify.setAttribute('src',APP_PATH+'user/code.htm?verify='+Math.random());
}
function modifyPwd(){
	var password = $.trim($("#password").val());
	if(password.length<6){
		alert("密码长度不能少于6个字符!");
		return ;
	}
	var repawd = $.trim($("#repawd").val());
	if(password!=repawd){
		alert("两次输入密码不一致!");
		return ;
	}
	$("#mPwd").submit();
}
function restPwd(){
	$("#mPwd").reset();
}